package org.agony2d.gpu.supportClasses.textures {
	import flash.display.BitmapData;
	import flash.display3D.Context3D;
	import flash.display3D.textures.Texture;
	import flash.display3D.textures.TextureBase;
	import flash.geom.Matrix;
	import flash.geom.Point;
	import flash.geom.Rectangle;
	import org.agony2d.core.agony_internal;
	
	use namespace agony_internal;
	
public class TextureProxy {
	
	public function TextureProxy( name:String ) {
		m_name = name
	}
	
	final agony_internal function get left() : Number {
		return m_x / m_fullWidth
	}
	
	final agony_internal function get right() : Number {
		return (m_x + m_realityWidth) / m_fullWidth
	}
	
	final agony_internal function get top() : Number {
		return m_y / m_fullHeight
	}
	
	final agony_internal function get bottom() : Number {
		return (m_y + m_realityHeight) / m_fullHeight
	}
	
	agony_internal function dispose() : void {
		m_rawTexture.dispose()
	}
	
	agony_internal static var cachedMatrix:Matrix
	agony_internal static var cachedRect:Rectangle
	agony_internal static var g_zeroPoint:Point = new Point
	
	agony_internal var m_x:int, m_y:int, m_fullWidth:int, m_fullHeight:int, m_realityWidth:int, m_realityHeight:int
	agony_internal var m_rawTexture:Texture
	agony_internal var m_name:String
}
}